#include <iostream>
using namespace std;


class Person
{
public:
    Person()
    {
        cout<<"Person()"<<endl;
    }
    ~Person()
    {
        cout<<"Person()"<<endl;
    }

public:
    int m_age;
};

class Student : public Person
{
public:
    Student()
    {
        cout<<"Student()"<<endl;
    }
    ~Student()
    {
        cout<<"~Student()"<<endl;
    }

};

int main()
{
    Person * person = new Student();//父类指针指向

    return 0;
}